package com.eksframework.commons.core.choice;

/**
 * 选择接口
 *
 * @author: chenfenghai
 * @version: 1.0
 * @date: 2021-02-08 10:04
 */
public interface Selector {

    /**
     * 是否已选择
     *
     * @return boolean
     */
    boolean isSelected();

    /**
     * 是否未选择
     *
     * @return boolean
     */
    default boolean nonSelected() {
        return !isSelected();
    }
}
